﻿package com.guavestudios.fcfg.readers {
	import com.guavestudios.fcfg.readers.BasicSettingReader;
	
	/**
	 * ...
	 * @author maze | guavestudios.com
	 */
	public class FcfgDefaultReader extends BasicSettingReader{
		
		
		public function FcfgDefaultReader(...args) {
			if (args.length > 0)
				load.apply(this,args);
		}
		
		override public function load(...args):void {
			for (var i:int = 0,ilen:int=args.length; i < ilen; i++) {
				var a:*= args[i];
				for (var si:String in a) {
					setSetting(mapIdRev(si),a[si]);
				}
			}
		}
	}

}